package com.green.controller;

import com.green.service.WriterService;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/writer")
@RequiredArgsConstructor
public class WriterController {

    private final WriterService writerService;

    @PostMapping("/demo1")
    public void demo1(HttpServletResponse response) {
        writerService.demo1(response);
    }

    @PostMapping("/demo2")
    public void demo2(HttpServletResponse response) {
        writerService.demo2(response);
    }

    @PostMapping("/demo3")
    public void demo3(HttpServletResponse response) {
        writerService.demo3(response);
    }

    @PostMapping("/demo4")
    public void demo4(HttpServletResponse response) {
        writerService.demo4(response);
    }

    @PostMapping("/demo5")
    public void demo5(HttpServletResponse response) {
        writerService.demo5(response);
    }


    @GetMapping("/export1")
    public void export1(HttpServletResponse response) {
        writerService.export1(response);
    }

    @GetMapping("/export2")
    public void export2(HttpServletResponse response) {
        writerService.export2(response);
    }

    @GetMapping("/export3")
    public void export3(HttpServletResponse response) {
        writerService.export3(response);
    }

}
